package com.quanshu.exchange.support.net;

/**
 * 接口状态码
 */
public enum ApiCode {
    SUCCESS(1, "请求成功"),
    FAILURE(0, "请求失败");

    private int code;
    private String msg;
    private String token;

    ApiCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

}
